/**
 * @author:cloud.lg
 * @date:2021.8.27
 * @description:这里主要包含后台接口的定义
 * @module decl 账号管理
 */
 import {get, post, fetch } from '../fetch'

// 账号列表
export const accountList = (params) => fetch('/platform/account/list', params, 'query', 'get');

// 创建账号
export const createAccount = (params) => fetch('/platform/account/create', params, 'form', 'post');

// 获取账号信息
export const getAccount = (params) => fetch('/platform/account/get', params, 'query', 'get')

// 创建账号
export const editAccount = (params, id) => fetch('/platform/account/edit?id='+id, params, 'form', 'post');

// 删除账号
export const delAccount = (params) => fetch('/platform/account/del', params, 'form', 'post');
